package com.xbongbong.saas.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.marketManage.pojo.dto.MarketActivityUserDeleteBatchDTO;
import com.xbongbong.pro.marketManage.pojo.vo.MarketActivityUserDeleteBatchVO;
import com.xbongbong.sys.domain.entity.UserEntity;

import java.util.List;

/**
 * @author  chunyang.qin
 * @version v1.0
 * @date 2020/11/4 19:05
 * @since v1.0
 */
public interface MarketActivityUserService {

    /**
     * 批量删除市场活动负责人关系
     * @author chunyang.qin
     * @date 2020/11/4
     * @param
     * @return com.xbongbong.pro.customeruser.pojo.vo.CustomerUserDeleteBatchVO
     * @throws XbbException 业务异常
     */
    MarketActivityUserDeleteBatchVO deleteBatch(MarketActivityUserDeleteBatchDTO marketActivityUserDeleteBatchDTO) throws XbbException;

    /**
     * 获取市场活动负责人
     * @param marketActivityIds id集合
     * @param corpid 公司id
     * @param isMain 是否主负责人 0， 1， null
     * @return
     * 创建时间 2019/4/16 7:26 PM
     * 修改时间 2019/4/16 7:26 PM
     * @author chy
     * @since v1.0
     * @version v1.0
     */
    List<UserEntity> getMainUserList(List<Long> marketActivityIds, String corpid, Integer isMain);

    void dataConsistencyUpdateUser(String corpid, String userId, String userName, String userAvatar) throws XbbException;
}
